<include file="Public:header" />

<!--main-->
<div id="s_main">
    <div class="breadcrumbs">
        <span><a href="{:U('Home-Index/index')}">Home</a>&nbsp;&gt;&nbsp;User list</span>
        <span class="sort">Sort by:&nbsp;
            <select id="user_sort" class="user_sort" onchange="sortUsers(this.value)">
            <option value="points" <eq name="sort" value="points">selected</eq>>By points</option>
            <option value="question" <eq name="sort" value="question">selected</eq>>By questions</option>
            <option value="answer" <eq name="sort" value="answer">selected</eq>>By answers</option>
            <option value="name" <eq name="sort" value="name">selected</eq>>By username</option>
            <option value="regtime" <eq name="sort" value="regtime">selected</eq>>By register time</option>
            </select>
        </span>
    </div>
    <div class="container">
        <div class="users_wrap top_line">
            <ul class="list">
                <volist name="users" id="vo">
                <li>
                    <div class="avatar"><a href="{$vo.user_id|user_url_format=$vo['user_name']}"><img src="{$vo.user_email|get_avatar}"></a></div>
                    <div class="info"><p><a href="{$vo.user_id|user_url_format=$vo['user_name']}">{$vo.user_name}</a></p><p>{$vo.user_points}</p></div>
                </li>
                </volist>
            </ul>
        </div> 
        <div class="pagination f_right">{$pagination}</div>
    </div>
</div>

<include file="Public:footer" />